/*
 * enc_version.cpp
 *
 *  Created on: 2018年11月14日
 *  Author: Degang.Wu (windragon@126.com)
 *  Desc:
 */

#include "enc_version.h"
#include <stdio.h>
#include <string.h>

#define BW_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
#define BW_VERSION_DOT(a, b, c) a ##.## b ##.## c
#define BW_VERSION(a, b, c) BW_VERSION_DOT(a, b, c)
#define BW_TOSTRING(s) #s
#define BW_STRINGIFY(s)         BW_TOSTRING(s)


#define HIENC_VERSION_INT   BW_VERSION_INT(HIENC_VERSION_MAJOR, \
                                               HIENC_VERSION_MINOR, \
                                               HIENC_VERSION_MICRO)
#define HIENC_VERSION       BW_VERSION(HIENC_VERSION_MAJOR, \
                                               HIENC_VERSION_MINOR, \
                                               HIENC_VERSION_MICRO)

#define HIENC_BUILD         HIENC_VERSION_INT

#define HIENC_VERSION_STR   "V" BW_STRINGIFY(HIENC_VERSION)

const char* hienc_get_version()
{
	return HIENC_VERSION_STR;
}



